package com.lzy.business.request;

import com.lzy.base.dtos.SysResourceDto;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/5/10 0010.
 */
public class SysResourceListRequest extends BaseRequest implements Serializable {

    private static final long serialVersionUID = -1150455667203201701L;
    /**
     * 自增id
     */
    private Long id;

    /**
     * 上级id
     */
    private Long pid;

    /**
     * 资源名称
     */
    private String name;

    private String url;

    /**
     * 操作时间
     */
    private String operateTime;

    /**
     * 排序字段
     */
    private Integer disorder;

    /**
     * 描述
     */
    private String remark;

    /**
     * 资源编码
     */
    private String code;

    /**
     * 资源状态：0 停用 | 1 启动
     */
    private Integer status;

    /**
     * 资源类型：0 后台菜单 | 1 前台菜单 | 2 按钮
     */
    private Integer type;

    /**
     * 资源级别：0 平台级别 | 1 核心企业 | 2 第三方机构 |3 子公司| 4 部门|5其他
     */
    private String dataType;

    /**
     * 层级（从1开始，1为第一层）
     */
    private Integer rank;

    private List<SysResourceDto> children;

    public List<SysResourceDto> getChildren() {
        return children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(String operateTime) {
        this.operateTime = operateTime;
    }

    public Integer getDisorder() {
        return disorder;
    }

    public void setDisorder(Integer disorder) {
        this.disorder = disorder;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public void setChildren(List<SysResourceDto> children) {
        this.children = children;
    }
}
